<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript" src="res/jquery/jquery-1.8.2.min.js"></script>
        <script type="text/javascript">
            //            function login() {
            //                jQuery.ajax({
            //                    type: "POST",
            //                    url: "login.action",
            //                    data: { username: jQuery("#username").val(), password: jQuery("#password").val() }
            //                }).done(function (result) {
            //                    alert(result.message);
            //                });
            //            }
        </script>
        <title>JSP Page</title>
    </head>
    <body>
        <table>
            <s:form action="login" method="post">
                <tr>
                    <td>Username</td>
                    <td>:</td>
                    <td>
                        <s:textfield id="username" name="username"></s:textfield>
                    </td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td>:</td>
                    <td>
                        <s:password id="password" name="password"></s:password>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td>
                        <s:submit value="Login"></s:submit>
                    </td>
                </tr>
            </s:form>
        </table>
    </body>
</html>
